package com.qfedu.demo;

import com.qfedu.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Demo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");

        AccountService accountService = applicationContext.getBean("accountService", AccountService.class);

        accountService.transfer("hzy","ysy",1000.0);
    }
}
